<%--
  Created by IntelliJ IDEA.
  User: 何雨川
  Date: 2021/10/19
  Time: 11:04
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>书籍列表</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="../../css/menustyle.css">
</head>
<body>
<div class="container-fluid">
    <div class="row-fluid clearfix">
        <!-- 导航栏 -->
        <div id="sidebar">
            <header>
                <a href="#">后台管理</a>
            </header>
            <ul class="nav">
                <li>
                    <a href="${pageContext.request.contextPath}/admin/allReader">
                        读者管理
                    </a>
                </li>
                <li>
                    <a href="#">
                        出入库管理
                    </a>
                </li>
                <li>
                    <a href="${pageContext.request.contextPath}/Lend/adminAllBook">
                        借阅管理
                    </a>
                </li>
                <li>
                    <a href="#">
                        分类管理
                    </a>
                </li>
            </ul>
        </div>

        <!-- 正文 -->
        <div id="content">
            <div class="container-fluid" style="margin-left: 250px">
                <!-- 网页内容 -->
                <div class="container">

                    <div class="row clearfix">
                        <div class="col-md-12 column">
                            <div class="page-header">
                                <h1>
                                    <small>该书籍的借阅信息</small>
                                </h1>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-md-4 column">
                            <a class="btn btn-primary" href="${pageContext.request.contextPath}/Lend/adminAllBook">回到书籍信息主界面</a>
                        </div>
                        <div class="col-md-4 column"></div>

                    </div>

                    <div class="row clearfix">
                        <div class="col-md-12 column">
                            <table class="table table-hover table-striped">
                                <thead>
                                <tr>
                                    <th>借阅读者编号</th>
                                    <th>书籍编号</th>
                                    <th>借书日期</th>
                                    <th>还书日期</th>
                                    <th>管理员操作</th>
                                </tr>
                                </thead>

                                <tbody>
                                <c:forEach var="lend" items="${requestScope.get('list')}">
                                    <tr>
                                        <td>${lend.getReaderid()}</td>
                                        <td>${lend.getBookid()}</td>
                                        <td>${lend.getLenddate()}</td>
                                        <td>${lend.getRemanddate()}</td>
                                        <td>
                                            <a href="${pageContext.request.contextPath}/Lend/deleteLendNote?readerid=${lend.getReaderid()}&bookid=${lend.getBookid()}&lenddate=${lend.getLenddate()}&remanddate=${lend.getRemanddate()}" >删除该记录</a>
                                        </td>
                                    </tr>
                                </c:forEach>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>



